package com.boarsoft.boar.demo.user.entity;

import java.io.Serializable;

import com.boarsoft.dao.sharding.bean.HashedEntity;

public class PocUser implements HashedEntity, Serializable {
	private static final long serialVersionUID = 1L;

	private int userId;
	private int tenantId;
	private String userName;
	private String mobile;
	private String createTime;
	private String modifyTime;

	public PocUser() {
	}

	public PocUser(int userId, int tenantId, String userName, String mobile, String createTime, String modifyTime) {
		this.userId = userId;
		this.tenantId = tenantId;
		this.userName = userName;
		this.mobile = mobile;
		this.createTime = createTime;
		this.modifyTime = modifyTime;
	}

	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getTenantId() {
		return this.tenantId;
	}

	public void setTenantId(int tenantId) {
		this.tenantId = tenantId;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getModifyTime() {
		return this.modifyTime;
	}

	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}

	@Override
	public int hash() {
		return tenantId;
	}

	@Override
	public String toString() {
		return "PocUser [userId=" + userId + ", tenantId=" + tenantId + ", userName=" + userName + ", mobile=" + mobile
				+ ", createTime=" + createTime + ", modifyTime=" + modifyTime + "]";
	}

}
